package cn.felord.jsr303springboot.api;

import cn.felord.jsr303springboot.common.Rest;
import cn.felord.jsr303springboot.common.RestBody;
import cn.felord.jsr303springboot.entity.PhoneVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author Dax
 * @since 13:05  2019-07-12
 */
@RestController
@RequestMapping("/phone")
public class PhoneController {

    @GetMapping("/vali")
    public Rest validate(@Valid PhoneVo phoneVo){
        //todo 你的业务逻辑

        return RestBody.ok();
    }
}
